<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html lang="zh">
 <head>
  <meta content="width=device-width, initial-scale=1.0" name="viewport"/>
  <meta content="2018-10-23T06:18:10.521000000" name="created"/>
  <meta content="2023-12-12T09:31:22" name="changed" translator="gocpicnic"/>
  <meta content="text/html; charset=utf-8" http-equiv="content-type"/>
  <meta content="zh" http-equiv="Content-Language"/>
  <title>
   <!-- Creating bundles -->
   创建捆绑包
  </title>
  <link href="../../style.css" rel="stylesheet" type="text/css"/>
 </head>
 <body>
  <div class="maindiv">
   <p>
    <b>
     上一节:
    </b>
    <a href="index.html">
     附加功能
    </a>
   </p>
   <h1>
    <!-- Creating bundles -->
    创建捆绑包
   </h1>
   <p>
    <!-- In simple Logisim circuits, most wires carry only one bit; but Logisim also allows you to create wires that bundle together multiple bits. The number of bits traveling along a wire is that wire's <strong>bit width</strong>. -->
    在简单的 Logisim-evolution 电路中，大多数导线仅承载一位； 但 Logisim-evolution 还允许您创建将多个位捆绑在一起的连线。 沿导线传输的位数就是该导线的
    <strong>
     位宽
    </strong>
    。
   </p>
   <p>
    <!-- Every input and output on every component in the circuit has a bit width associated with it. Often the bit width is 1, and there is no way of changing that, but many of Logisim's built-in components include attributes allowing you to customize the bit widths of their inputs and outputs. -->
    电路中每个组件上的每个输入和输出都有一个与其关联的位宽度。 位宽通常为 1，并且无法更改，但 Logisim-evolution 的许多内置组件都包含允许您自定义其输入和输出的位宽的属性。
   </p>
   <p>
    <!-- The below screen shot illustrates a simple circuit for finding the bitwise AND of two three-bit inputs. Notice how the three-bit output is the bitwise AND of the two inputs. All components have been customized to deal with three-bit data via its <b class=propertie>Data Bits</b> attribute; the screen shot shows the AND gate attributes, including the Data Bits attribute of 3. -->
    下面的屏幕截图说明了用于查找两个三位输入的按位与的简单电路。 请注意三位输出是如何按位与两个输入的。 所有组件都经过定制，可通过其
    <b class="propertie">
     Data Bits
    </b>
    属性处理三位数据； 屏幕截图显示了 AND 门属性，包括数据位属性 3。
   </p>
   <p align="center">
    <img alt="#########" src="../../../img-guide/feature-2-bundles-create.png"/>
   </p>
   <p>
    <!-- All components in Logisim define a bit width for each of input and output. In contrast, a wire's bit width is undefined: Instead, the wire's width adapts to the components to which it is attached. If a wire connects two components demanding different bit widths, Logisim will complain of "Incompatible widths" and indicate the offending locations in orange. In the below, the output pin's Data Bits attribute has been changed to 1, and so Logisim complains that the wire cannot connect a three-bit value to a one-bit value. -->
    Logisim-evolution 中的所有组件都为每个输入和输出定义一个位宽度。 相反，连线的位宽度是未定义的：相反，连线的宽度会适应其所连接的组件。 如果一根电线连接两个需要不同位宽度的组件，Logisim-evolution 将报错“宽度不兼容”，并以橙色指示违规位置。 在下面，输出引脚的数据位属性已更改为 1，因此 Logisim-evolution 报错线路无法将三位值连接到一位值。
   </p>
   <p align="center">
    <img alt="#########" class="notscal" src="../../../img-guide/feature-3-bundles-error.png"/>
   </p>
   <p>
    <!-- Wires that connect incompatible locations (drawn in orange) do not carry values. -->
    连接不兼容位置的导线（以橙色绘制）不携带值。
   </p>
   <p>
    <!-- For single-bit wires, you can see at a glance what value the wire carries because Logisim colors the wire light or dark green depending the value. It does not display values for multi-bit wires: They are simply black. You can, though, probe a wire by clicking it using the <b class=propertie>"poke"</b> tool (<img class="icontxt" src="../../../../icons/1616/toolpoke.png" alt="#########">). -->
    对于1位导线，您可以一目了然地看到线携带的值，因为 Logisim-evolution 根据值将线着色为浅绿色或深绿色。 它不显示多位线的值：它们只是黑色。 不过，您可以使用
    <b class="propertie">
     "poke"
    </b>
    工具 (
    <img alt="#########" class="icontxt" src="../../../../icons/1616/toolpoke.png"/>
    )。
   </p>
   <p align="center">
    <img alt="#########" src="../../../../img-guide/feature-4-bundles-probe.png"/>
   </p>
   <p>
    <!-- This probing feature is helpful for debugging circuits using wire bundles. -->
    此探测功能有助于使用调试电路。
   </p>
   <p>
    <!-- <b>Next:</b> <a href="fet-splitting.html">Splitters</a>. -->
    <b>
     下一节:
    </b>
    <a href="fet-splitting.html">
     分离器
    </a>
    .
   </p>
   <p>
   </p>
   <p>
   </p>
   <p>
   </p>
  </div>
 </body>
</html>
